package unsw.model;

public class Device {
    private String deviceId;
    private String type;
    private double positon;
    private boolean isMoving;
    private int bandwidth;
    private double availableDistance;

    public Device(String deviceId, String type, double positon, boolean isMoving) {
        this.deviceId = deviceId;
        this.type = type;
        this.positon = positon;
        this.isMoving = isMoving;
    }

    public Device(String deviceId, String type, double positon, boolean isMoving, int bandwidth, double availableDistance) {
        this.deviceId = deviceId;
        this.type = type;
        this.positon = positon;
        this.isMoving = isMoving;
        this.bandwidth = bandwidth;
        this.availableDistance = availableDistance;
    }

    public int getBandwidth() {
        return bandwidth;
    }

    public void setBandwidth(int bandwidth) {
        this.bandwidth = bandwidth;
    }

    public double getAvailableDistance() {
        return availableDistance;
    }

    public void setAvailableDistance(double availableDistance) {
        this.availableDistance = availableDistance;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPositon() {
        return positon;
    }

    public void setPositon(double positon) {
        this.positon = positon;
    }

    public boolean isMoving() {
        return isMoving;
    }

    public void setMoving(boolean moving) {
        isMoving = moving;
    }

    @Override
    public String toString() {
        return "Device{" +
                "deviceId='" + deviceId + '\'' +
                ", type='" + type + '\'' +
                ", positon=" + positon +
                ", isMoving=" + isMoving +
                ", bandwidth=" + bandwidth +
                ", availableDistance=" + availableDistance +
                '}';
    }
}
